package com.paipai.controller;

import com.paipai.feign.UserFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class HomeController {

    @RequestMapping("/")
    public String home() {
        return "proj/homeh";
    }

    @RequestMapping("/open/{work}")
    public String open(@PathVariable("work") String work) {
        return "proj/" + work;
    }

    @RequestMapping("toLogin")
    public String toLogin() {
        return "proj/login";
    }
    @RequestMapping("/toRegister")
    public String toRegister(){
        System.out.println("前往注册");
        return "proj/register";
    }
    @RequestMapping("product")
    public String product() {
        return "proj/product";
    }


}
